package com.depth.viewer.loader
{
	import com.depth.viewer.widget.definition.IWidgetDefinition;
	
	import mx.core.IFlexModuleFactory;

	public interface IWidgetLoader
	{
		function load(widgetDef:IWidgetDefinition,moduleFactory:IFlexModuleFactory,isUserCaceh:Boolean = true):void;
		function unload(widgetDef:IWidgetDefinition):void;
		function set loadedHandler(handler:Function):void;
		function set loadFailHandler(handler:Function):void;
		function set unloadedHandler(handler:Function):void;
	}
}